import { Data, PageIn } from '@idmy/core'

export function pageRole(params: PageIn): Promise<Data[]> {
  return http.post<Data[]>(`/api/rbac/Role/page`, params, { appKey: 'rbac' })
}

export function deleteRole(id: number) {
  return http.post<boolean>(`/api/rbac/Role/delete/` + id, undefined, { appKey: 'rbac' })
}
